package com.b505.weixin.code.dao;

import com.b505.weixin.code.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface UserDao extends JpaRepository<User,Integer> {



    @Query(value = "select * from user ", nativeQuery = true)
    List<User> findAllUser();


}
